package com.mk.wardsystemserver.pojo;

import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhoubin
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_patient")
@ApiModel(value="Patient对象", description="")
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "病人编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String gender;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "出生日期")
    private LocalDate birthday;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "民族")
    private Integer nationId;

    @ApiModelProperty(value = "政治面貌")
    private Integer politicId;

    @ApiModelProperty(value = "籍贯")
    private String nativePlace;

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "联系地址")
    private String address;

    @ApiModelProperty(value = "生病原因")
    private String illness;

    @ApiModelProperty(value = "是否出院")
    private String isLeaveHospital;

    @ApiModelProperty(value = "病房类型id")
    private Integer wardRoomId;

    @ApiModelProperty(value = "药品id")
    private  Integer medicineId;

    @ApiModelProperty(value= "是否结算")
    private Boolean isAccounts;

    @ApiModelProperty(value = "民族")
    @TableField(exist = false)
    private Nation nation;

    @ApiModelProperty(value = "政治面貌")
    @TableField(exist = false)
    private  PoliticsStatus politicsStatus;

    @ApiModelProperty(value = "病房类型")
    @TableField(exist = false)
    private  Room roomType;

    @ApiModelProperty(value = "药品信息")
    @TableField(exist = false)
    private  Medicine medicineInfo;

    @ApiModelProperty(value = "病房金额")
    @TableField(exist = false)
    private  Room roomPrice;

    @ApiModelProperty(value = "药品金额")
    @TableField(exist = false)
    private  Medicine medicinePrice;

    @ApiModelProperty(value = "费用总额")
    @TableField(exist = false)
    private  AllDetails allDetails;
}
